//合同字典
const warning = 'rgb(var(--orange-6))';
const danger = 'rgb(var(--red-6))';
const success = 'rgb(var(--green-6))';
const fail = 'var(--color-neutral-6)';

//user合同状态
export const contractStatus = [
  { value: 1, text: '待起草', color: warning },
  { value: 2, text: '起草不通过', color: danger },
  { value: 3, text: '待提交', color: warning },
  { value: 4, text: '待确认', color: success },
  { value: 5, text: '已退回', color: danger },
  { value: 6, text: '待审批', color: warning },
  { value: 7, text: '审批不通过', color: danger },
  { value: 8, text: '审批中', color: warning },
  { value: 9, text: '已审批', color: success },
  { value: 10, text: '已签署', color: success },
  { value: 11, text: '已作废', color: fail },
  { value: 12, text: '终止', color: fail },
  { value: 13, text: '解除', color: fail }
];

//单个合同状态
export const contractUserStatus = [
  { value: 1, text: '待确认', color: warning },
  { value: 2, text: '已退回', color: danger },
  { value: 3, text: '待审批', color: warning },
  { value: 4, text: '审批不通过', color: danger },
  { value: 5, text: '待签署', color: warning },
  { value: 6, text: '已签署', color: success },
  { value: 7, text: '已解除', color: fail },
  { value: 8, text: '已终止', color: fail },
  { value: 9, text: '已失效', color: fail }
];

//user合同状态对应的单个合同状态
export const contractStatusToUserStatus = [
  { value: 3, text: '待提交', status: 1 },
  { value: 4, text: '待确认', status: 1 },
  { value: 5, text: '已退回', status: 2 },
  { value: 6, text: '待审批', status: 3 },
  { value: 7, text: '审批不通过', status: 4 },
  { value: 8, text: '审批中', status: 3 },
  { value: 9, text: '已审批', status: 5 },
  { value: 10, text: '已签署', status: 6 },
  { value: 11, text: '已作废', status: 9 },
  { value: 12, text: '终止', status: 8 },
  { value: 13, text: '解除', status: 7 }
];

//单个合同状态
export const contractRenewalStatus = [
  { value: 0, text: '-', color: warning },
  { value: 1, text: '已同意', color: success },
  { value: 2, text: '已拒绝', color: fail },
  { value: 3, text: '待提交', color: warning },
  { value: 4, text: '待沟通', color: warning },
  { value: 5, text: '-', color: warning }
];
